<p>
	<strong>Title:</strong>
	<%= @article.title %>
</p>

<p>
	<strong>Text:</strong>
	<%= @article.text %>
</p>

<h2>Comments</h2>
<% @article.comments.each do |comment| %>
   <p>
     <strong>Commenter: </strong>
     <%= comment.commenter %>
    </p>
   <p>
     <strong>Comment:</strong>
     <%= comment.body %>
     </p>
<% end %>

<h2>Add a comment:</h2>
  <%= form_for([@article, @article.comments.build]) do |f| %>
    <p>
      <%= f.label :commenter %><br>
      <%= f.text_field :commenter %>
     </p>
    <p>
      <%= f.label :body %><br>
      <%= f.text_field :body %>
      </p>
      <p>
	<%= f.submit %>
      </p>
  <% end %>
       
<%= link_to 'Back', articles_path %>
<%= link_to 'Edit', edit_article_path(@article) %>
